﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/admin/ajax_view_page.Master" CodeBehind="BBSType.aspx.vb" Inherits="Web.BBSType" 
    title="在线交流类型" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ MasterType VirtualPath="ajax_view_page.Master" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="comCont" runat="server">
<asp:UpdatePanel ID="dgUpPal" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <asp:Button runat="server" Text="查询" CssClass="btn" ID="searchBtn"/>
                    <asp:Button runat="server" ID="addbtn" Text="添加" CssClass="btn" ToolTip="添加新的数据" OnClick="addbtn_Click" />
            <asp:Button ID="delBtn" runat="server" CssClass="btn" Text="删除" ToolTip="删除本页选择数据" OnClientClick="if(confirm('是否确认删除所选数据?')!=true) return false;" />
                    <asp:Button ID="outbtn" runat="server" CssClass="btn" OnClick="outbtn_Click" Text="导出" />
            <asp:GridView ID="dgGrid" runat="server" AutoGenerateColumns="False" CellPadding="3" GridLines="Horizontal" BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" DataKeyNames="ag05">
            <FooterStyle  BackColor="#B5C7DE" ForeColor="#4A3C8C" />
            <RowStyle  BackColor="#E7E7FF" ForeColor="#4A3C8C" />   
            <SelectedRowStyle  BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
            <PagerStyle  BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
            <AlternatingRowStyle  BackColor="#F7F7F7" />
            <HeaderStyle  BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
            <Columns>
                <asp:TemplateField HeaderText="操作">
                    <HeaderTemplate>
                        <asp:CheckBox ID="opChk" runat="server" AutoPostBack="True" OnCheckedChanged="opChk_CheckedChanged"
                            ToolTip="全选/反选 本页所有数据" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="DelChk" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:HyperLinkField DataNavigateUrlFields="ag05" DataNavigateUrlFormatString="BBSTypeIn.aspx?ag05={0}"
                    DataTextField="ag01" DataTextFormatString="{0}" HeaderText="编码" />
                <asp:BoundField DataField="ag02" HeaderText="名称" />
                <asp:TemplateField HeaderText="是否公开">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ag03") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# IIF(Eval("ag03")=1,"是","否") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="启用密码">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("ag04") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# IIF(Eval("ag04")=1,"是","否") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>        
        </asp:GridView>
        <div class="neirong1"><webdiyer:aspnetpager id="artPage" runat="server" AlwaysShow="True" ShowCustomInfoSection="Left" UrlPaging="True" PagingButtonLayoutType="Span" PrevPageText="上一页" CssClass="paginator" CurrentPageButtonClass="cpb" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" CustomInfoTextAlign="Left" LayoutType="Table" AlwaysShowFirstLastPageNumber="True" CustomInfoHTML="" NumericButtonCount="5" PageIndexBoxType="DropDownList" PageSize="30" ShowPageIndexBox="Auto" SubmitButtonText="转到"></webdiyer:aspnetpager></div>
        

<cc1:ModalPopupExtender ID="modelPop" runat="server" X="100" Y="50"
                        DropShadow="true" Drag="false" TargetControlID="searchBtn" OkControlID="HiddenField1" 
                            CancelControlID="cancelbtn" PopupControlID="txtPal" BackgroundCssClass="modalBackground"> 
                    </cc1:ModalPopupExtender>
                    
                     <asp:HiddenField id="HiddenField1" runat="server" value="1"/>
                     
                    <asp:Panel ID="txtPal" runat="server" Height="0px" Width="300px" Style="display: none" CssClass="modalPopup">
                        <asp:Panel ID="headPal" Height="18px" runat="server" Style="cursor: move;background-color:#DDDDDD;border:solid 1px Gray;color:Black">
                            <div style="vertical-align:middle">
                            <b>
                            &nbsp;选择查询条件
                            </b>
                            </div>
                        </asp:Panel>
                        
                        <div class="modalPopup-text">
<table border="1">
            
            <tr>
                <td style="width: 70px" align="right">
                    编码:
                </td>
                <td style="width: 230px" align="left"><asp:TextBox runat="server" ID="ag01" Columns="10" /></td>
            </tr>
            
            <tr>
                <td style="width: 70px" align="right">
                    名称:
                </td>
                <td style="width: 230px" align="left">
                    <asp:TextBox runat="server" ID="ag02" Columns="10" /></td>
            </tr>

            
            

            <tr>
                <td style="width: 100%" colspan="2" align="center" valign="middle">
                    <asp:Button ID="okbtn" runat="server" Text="确定" CssClass="btn" OnClick="okbtn_Click" />&nbsp;
                    <asp:Button ID="cancelbtn" runat="server" Text="取消" CssClass="btn" /></td>
            </tr>
        </table>
                        </div> 
                     </asp:Panel>
                     
                     
                     
                     <cc1:ModalPopupExtender ID="outPop" runat="server" X="100" Y="50"
                        DropShadow="true" Drag="true" TargetControlID="HiddenField1" OkControlID="HiddenField1" 
                            CancelControlID="HiddenField1" PopupControlID="Panel1" BackgroundCssClass="modalBackground" PopupDragHandleControlID="Panel2"> 
                    </cc1:ModalPopupExtender>
                    
                    <asp:Panel ID="Panel1" runat="server" Height="0px" Width="300px" Style="display: none" CssClass="modalPopup">
                        <asp:Panel ID="Panel2" Height="18px" runat="server" Style="cursor: move;background-color:#DDDDDD;border:solid 1px Gray;color:Black">
                            <div style="vertical-align:middle">
                            <b>
                            &nbsp;数据导出
                            </b>
                            </div>
                        </asp:Panel>
                        
                        <div class="modalPopup-text">
<table border="1">
            
            <tr>
                <td style="width: 300px" align="center" colspan="2">
                    &nbsp;
                    <asp:HyperLink ID="downlnk" runat="server">正在导出,请稍候...</asp:HyperLink></td>
            </tr>

            <tr>
                <td style="width: 100%" colspan="2" align="center" valign="middle">
                    <asp:Button ID="outcancelbtn" runat="server" Text="关闭" CssClass="btn" OnClick="outcancelbtn_Click1" /></td>
            </tr>
        </table>
                        </div> 
                     </asp:Panel>
                </ContentTemplate>
            </asp:UpdatePanel>

</asp:Content>